returns 400 on validator-faucets api when no validator_ids are sent#6131
returns 400 on validator-faucets api when no validator_ids are sent#6131JYC11 wants to merge 2 commits into
Conversation
Signed-off-by: JYC11 <jaeyoon.c@gmail.com>
Signed-off-by: JYC11 <jaeyoon.c@gmail.com>
0d14bb2 to
c2d6a03
Compare
@JYC11 I'm confused by this statement:
The issue says that it does occur. Did you try reproducing the issue? |
|
Seems like you're right, and the sql error has already been fixed. Given that the issue is almost a year old, that's not too surprising. |
That's fine by me, I'll close the PR. Can you close the issue? |
fixes: #1964
The SQL syntax crash does not seem to occur as an empty array produces
= ANY ('{}')which is valid SQL. A test asserting store returnsSeq.emptyfor an empty input was added as a regression test in caseinClausesemantics change.This PR instead addresses the user-facing concern: calling
/v0/validators/validator-faucetswith novalidator_ids(or a misspelled key likevalidator=) used to return 200 + empty list, masking the typo. It now returns HTTP 400 with a clear error.